<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base/base::head('个人信息',~{::link},~{::script},~{::style})">

    <link rel="stylesheet" th:href="${session.basePath}+'/resource/imp/home/css/amazeui.min.css'" media="all" />
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/imp/home/css/amazeui.cropper.css'" media="all" />
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/imp/home/css/custom_up_img.css'" media="all" />
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/imp/home/css/font-awesome.4.6.0.css'" media="all" />
    <script type="text/javascript" th:src="${session.basePath}+'/resource/imp/home/js/amazeui.min.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/imp/home/js/cropper.min.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/imp/home/js/custom_up_img.js'"></script>

    <link rel="stylesheet" th:href="${session.basePath}+'/resource/imp/home/css/personal.css'" media="all" />
    <script type="text/javascript" th:src="${session.basePath}+'/resource/imp/home/js/personal.js'"></script>

    <title>个人信息编辑</title>

</head>

<body style="background-color: #f7f8f9;">

<div class="personal_content">

    <div class="content_div" >

        <div class="content_top">
            <div class="top_tab"><a id="tab_psw_edt" class="tab_name on">密码修改</a></div>
        </div>

        <div id="pwdEditTab">
            <form>
                <input type='hidden' name='cType' value='PCWEB' placeholder="客户端类型"/>
                <input type="hidden" id="userId" name="id" th:value="${session.User.getId()}"/>
                <div class="div_base_info" style="margin-top: 48px">
                    <label class="label_title">当前密码:</label>
                    <input id="old_pwd" class="input_text" placeholder="请输入当前密码" type="password" maxlength="20" />
                    <span id="span_old_tag" style='color:red;'>*</span>
                    <label id="label_psw" class="label_notice">密码不能为空</label>
                </div>
                <div class="div_base_info">
                    <label class="label_title">新密码:</label>
                    <input id="new_pwd" class="input_text" placeholder="请输入新密码" type="password" maxlength="20" />
                    <span id="span_new_tag" style='color:#ee4e4e;'>*</span>
                    <a id="label_new_psw" class="label_notice">密码不能为空</a>
                </div>
                <div class="div_base_info">
                    <label class="label_title">确认密码:</label>
                    <input  id="confirm_pwd" class="input_text" placeholder="再次确认新密码" type="password" maxlength="20" />
                    <span id="span_confirm_tag" style='color:red;'>*</span>
                    <label id="label_new_psw_confirm" class="label_notice">密码不能为空</label>
                </div>
            </form>

            <a id="id_btn_commit" class="btn_commit" onclick="commit()">
                提交
            </a>

            <a id="id_btn_reset" class="btn_reset" onclick="reset()">
                重置
            </a>
        </div>

    </div>

</div>

<!--图片上传框-->
<div class="am-modal am-modal-no-btn up-frame-bj " tabindex="-1" id="doc-modal-1">
    <div class="am-modal-dialog up-frame-parent up-frame-radius">
        <div class="am-modal-hd up-frame-header">
            <label>修改头像</label>
            <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd  up-frame-body">
            <div class="am-g am-fl">
                <div class="am-form-group am-form-file">
                    <div class="am-fl">
                        <button type="button" class="am-btn am-btn-default am-btn-sm">
                            <i class="am-icon-cloud-upload"></i> 选择要上传的文件</button>
                    </div>
                    <input type="file" id="inputImage">
                </div>
            </div>
            <div class="am-g am-fl" >
                <div class="up-pre-before up-frame-radius">
                    <img alt="" src="" id="image" >
                </div>
                <div class="up-pre-after up-frame-radius">
                </div>
            </div>
            <div class="am-g am-fl">
                <div class="up-control-btns">
                    <span class="rotate-left"  onclick="rotateimgleft()"></span>
                    <span class="rotate-right" onclick="rotateimgright()"></span>
                    <span class="icon-check" id="up-btn-ok" url="/filesManager/uploadAvatar?serviceName=Main&isScale=true"></span>
                </div>
            </div>

        </div>
    </div>
</div>

<!--加载框-->
<div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="my-modal-loading">
    <div class="am-modal-dialog">
        <div class="am-modal-hd">正在上传...</div>
        <div class="am-modal-bd">
            <span class="am-icon-spinner am-icon-spin"></span>
        </div>
    </div>
</div>

</body>
</html>
